package com.geovis.emergency.spd.entity.basic.pojo.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 基础管理模块-集成接口保存DTO
 * </p>
 *
 * @author 王响
 * @since 2022-03-12
 */
@Getter
@Setter
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "BasicThirdPartyInterfaceSaveDTO对象", description = "基础管理模块-集成接口保存DTO")
public class BasicThirdPartyInterfaceSaveDTO implements Serializable {

    @NotBlank(message = "名称不能为空")
    @Length(max = 255, message = "名称最长不能超过{255}个字符")
    @ApiModelProperty(value = "名称",required = true)
    private String name;

    @NotBlank(message = "接口地址不能为空")
    @Length(max = 255, message = "接口地址最长不能超过{255}个字符")
    @ApiModelProperty(value = "接口地址",required = true)
    private String url;

    @NotBlank(message = "数据状态不能为空")
    @Length(max = 1, message = "数据状态最长不能超过{1}个字符")
    @ApiModelProperty(value = "数据状态",required = true)
    private String dataStatus;

    @ApiModelProperty("备注")
    private String remark;
}
